package com.example.tms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

/*
 *无他，唯手熟尔（申金）
 */
@Data
@TableName("department")
public class Department {
    @TableId(value = "dep_id", type = IdType.AUTO) // 主键映射
    private Integer id;
    @TableField("dep_name") // 部门名
    private String name;
    @TableField("parent_id") // 父部门ID
    private Integer parentId;
    @TableField("manager_id")   // 部门经理ID
    private String managerId;
    @TableLogic
    @TableField("is_deleted")   // 是否删除
    private Boolean isDeleted;
    @TableField("created_at")   // 创建时间
    private String createdAt;
    @TableField("updated_at")   // 更新时间
    private String updatedAt;
    @TableField("description")   // 描述
    private String description;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getManagerId() {
        return managerId;
    }

    public void setManagerId(String managerId) {
        this.managerId = managerId;
    }

    public Boolean getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public String getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(String updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
